Custom Script Execution
Use this feature to set Python scripts to be executed before the platform is started and after the platform has shutdown.
A script is executed only if it is not empty. The Build Progress dialog informs about the execution and a success / failure before and after the execution.
You can use the following constants:
Constant | Interface in TPT API | Description |
---|---|---|
TPTAPI | com.piketec.tpt.api.TptApi | root access to TPT API |
PROJECT | com.piketec.tpt.api.Project | current TPT project |
EXECUTIONCONFIG | com.piketec.tpt.api.ExecutionConfiguration | current execution configuration |
PLATFORMCONFIG | com.piketec.tpt.api.PlatformConfiguration | current platform configuration |
To use these constants, you must first activate the TPT API (RMI) feature in the TPT Tool Preferences, see General Preferences - TPT API.
To get more information about using these constants, select View|Show View|Help and click TPT API, see TPT API.